package com.AAA.entity.mht;

import com.AAA.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_mht_plane")
public class TMhtPlane {

  @Id
  private Integer id;
  private String planename;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date begintime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date endtime;
  private String code;
  private Integer uid;
  private Date createtime;
  private Date updatetime;
  private Integer status;
  @Transient
  private User user;
}
